package com.symone.crawler.runnable;

import cn.hutool.db.Entity;
import com.symone.crawler.service.SearchService;

public class SearchThread implements Runnable {

    private int page;
    private int curPrice;
    private int addPrice;
    private boolean useProxy;

    public SearchThread(int page ,int curPrice ,int addPrice, boolean useProxy){
        this.page = page;
        this.curPrice = curPrice;
        this.addPrice = addPrice;
        this.useProxy = useProxy;
    }

    @Override
    public void run() {
        //while (true) {
            new SearchService(page,curPrice,addPrice).saveWithFetch(useProxy);
        //}
    }
}
